package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 费用报销业务对象 oa_finance_submit
 *
 * @author xiaoyan
 * @date 2023-05-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaFinanceSubmitBo extends BaseEntity {

    /**
     * 主键ID
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 报销人姓名
     */
    @NotBlank(message = "报销人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantName;

    /**
     * 报销人所属部门
     */
    @NotBlank(message = "报销人所属部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantDept;

    /**
     * 报销人卡号
     */
    @NotBlank(message = "报销人卡号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantCardNumber;

    /**
     * 报销人开户银行名称
     */
    @NotBlank(message = "报销人开户银行名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantRankName;

    /**
     * 费用类型
     */
    @NotBlank(message = "费用类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantType;

    /**
     * 报销内容
     */
    private String applicantContent;

    /**
     * 收款方单位名称
     */
    @NotBlank(message = "收款方单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payeeUnitName;

    /**
     * 收款方账号
     */
    @NotBlank(message = "收款方账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payeeAccount;

    /**
     * 收款方开户银行名称
     */
    @NotBlank(message = "收款方开户银行名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payeeRankName;

    /**
     * 收款合计
     */
    @NotBlank(message = "收款合计不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payeeTotal;

    /**
     * 收款总额大写
     */
    @NotBlank(message = "收款总额大写不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payeeCapitalization;

    /**
     * oss集合
     */
    private String attachment;

    /**
     * 备注
     */
    private String remarks;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;

    /**
     * 创建
     */
    private String createUser;
}
